<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo4</title>


    {# 加载静态文件方式一，加载static，动态拼接url #}
    {% load static %}
    <script src="{% static "/js/jquery.min.js" %}"></script>


</head>
<body>
    <TABLE ID="table_demo"></TABLE>

    {# 加载静态文件方式二，直接使用static，应为static已经是一个公共的路径了 #}
    <img src="/static/img/demo1.jpg">

    <script language="JavaScript">
        $.get("/demo4.do", {}, function (user) {
           for (key in user) {
               $('#table_demo').append("<tr><td>"+key+"</td><td>"+user[key]+"</td></tr>");
           }
        });
    </script>

</body>
</html>